package com.healthdata.vo;

import com.healthdata.entity.ComprehensiveHospitalCost;
import lombok.Data;

import java.util.List;

@Data
public class MedicalCostTrendVO {
    private List<Integer> years;                 // 年份
    private List<CostData> committee;            // 委属数据
    private List<CostData> province;             // 省属数据
    private List<CostData> prefectureLevel;      // 地级市属数据
    private List<CostData> countyLevel;          // 县级市属数据
    private List<CostData> county;               // 县属数据
    private List<CostData> costData;

    @Data
    public static class CostData {
        // 应包含与ComprehensiveHospitalCost对应的属性
        private double totalCost;
        private Integer id;
        private String level;
        private Integer year;
        private Double hospitalTotalCost;
        private Double medicineFee;
        private Double inspectionFee;
        private Double medicineRatio;
        private Double inspectionRatio;

        public Double getTotalCost() {
            return totalCost;
        }

        public void setTotalCost(Double totalCost) {
            this.totalCost = totalCost;
        }

        // 构造函数、getter和setter
        public CostData() {}

        // 建议添加带参数的构造函数用于转换
        public CostData(ComprehensiveHospitalCost entity) {
            this.id = entity.getId();
            this.level = entity.getLevel();
            this.year = entity.getYear();
            this.hospitalTotalCost = entity.getHospitalTotalCost();
            this.totalCost = entity.getHospitalTotalCost();
            this.medicineFee = entity.getMedicineFee();
            this.inspectionFee = entity.getInspectionFee();
            this.medicineRatio = entity.getMedicineRatio();
            this.inspectionRatio = entity.getInspectionRatio();
        }

        public void setTotalCost(double totalCost) {
            this.totalCost = totalCost;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public Integer getYear() {
            return year;
        }

        public void setYear(Integer year) {
            this.year = year;
        }

        public Double getHospitalTotalCost() {
            return hospitalTotalCost;
        }

        public void setHospitalTotalCost(Double hospitalTotalCost) {
            this.hospitalTotalCost = hospitalTotalCost;
        }

        public Double getMedicineFee() {
            return medicineFee;
        }

        public void setMedicineFee(Double medicineFee) {
            this.medicineFee = medicineFee;
        }

        public Double getInspectionFee() {
            return inspectionFee;
        }

        public void setInspectionFee(Double inspectionFee) {
            this.inspectionFee = inspectionFee;
        }

        public Double getMedicineRatio() {
            return medicineRatio;
        }

        public void setMedicineRatio(Double medicineRatio) {
            this.medicineRatio = medicineRatio;
        }

        public Double getInspectionRatio() {
            return inspectionRatio;
        }

        public void setInspectionRatio(Double inspectionRatio) {
            this.inspectionRatio = inspectionRatio;
        }
    }
}